function autoResize(frameObjID) {
  try {
    frameObj = $("#" + frameObjID);
    var innerDoc = (frameObj.attr("contentDocument")) ? frameObj.attr("contentDocument") : frameObj.attr("contentWindow").document;
     resizingObj = (frameObj.attr("style"))? frameObj.attr("style") : frameObj;
      resizingObj.attr("height", innerDoc.body.scrollHeight + 40);
  } catch(e) {
    window.status = e.message;
  }
}
